package com.project.service.impl;

import com.project.bean.ManBean;
import com.project.mapper.IManMapper;
import com.project.service.IManService;
import org.apache.ibatis.session.SqlSession;

public class ManServiceImpl extends BaseService implements IManService {
    @Override
    public ManBean findByIdIncludeCar(int id) {
        SqlSession session = this.getSession();
        IManMapper mapper = session.getMapper(IManMapper.class);
        ManBean man =  mapper.findByIdIncludeCar(id);
        session.close();
        return man;
    }

    public static void main(String[] args) {
        IManService service = new ManServiceImpl();
        System.out.println(service.findByIdIncludeCar(1));
    }
}
